package tk.djcrazy.instantmessage.service;

import tk.djcrazy.instantmessage.domain.UserEntity;

public interface IUserService {
	
	public UserEntity findById(int id);
	
	public UserEntity findByUserName(String userName);
	
	public UserEntity findByEmail(String email);
	
	public boolean authenticateUser(String userName, String password);
	
	public boolean isUserNameCanBeRegister(String userName);
	
	public boolean isEmailCanBeRegister(String email);
	
	public void registerUser(String userName, String passowrd, String email);

	public void delete(UserEntity baseBean);

	public void save(UserEntity userEntity);

}
